package hutool;

import cn.hutool.core.date.DateUtil;

import java.util.Date;

/**
 * @author DengZhiYuan
 * @version 1.0
 * @date 2023/1/9 9:43
 */
public class DateUtilDemo {

    public static void main(String[] args) {
//        new DateUtilDemo().format1();
//        new DateUtilDemo().sTof();
        System.out.println(Integer.MAX_VALUE);
    }


    public void format1(){
        Date xsYearMonth= new Date();
        String format = DateUtil.format(xsYearMonth, "yyyyMM31");
        System.out.println(format);
    }

    private void beginDateTest(){
        System.out.println(DateUtil.beginOfDay(new Date()));
        System.out.println(DateUtil.beginOfWeek(DateUtil.lastWeek()));
        System.out.println(DateUtil.endOfWeek(DateUtil.lastWeek()));
    }

    private void sTof(){
        String onlineTime = DateUtil.secondToTime((new Double("95.145")).intValue()) ;
        System.out.println(onlineTime);
    }

}
